package o;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;

public class fjw {
    private static fjz ˋ = new fjz();

    public static <TResult> fjo<TResult> ˋ(Callable<TResult> callable) {
        return ˋ.ˏ(fjt.ॱ(), callable);
    }

    public static <TResult> fjo<TResult> ˏ(Callable<TResult> callable) {
        return ˋ.ˏ(fjt.ˎ(), callable);
    }

    public static <TResult> TResult ॱ(fjo<TResult> o_fjo_TResult) throws ExecutionException, InterruptedException {
        fjz.ˎ("await must not be called on the UI thread");
        if (o_fjo_TResult.ˏ()) {
            return fjz.ˏ(o_fjo_TResult);
        }
        fjp bVar = new b();
        o_fjo_TResult.ˏ(bVar).ˋ(bVar);
        bVar.ˊ.await();
        return fjz.ˏ(o_fjo_TResult);
    }
}
